

#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;


void test_count() {
	vector<int> vec;
	for (size_t i = 0; i < 10; i++)
	{
		vec.push_back(i);
	}
	vec.push_back(2);
	vec.push_back(2);
	vec.push_back(2);

	int num = count(vec.cbegin(), vec.cend(), 2);
	cout << "num:" << num << endl;
}

void test_equal() {

	vector<int> vec;
	for (size_t i = 0; i < 10; i++)
	{
		vec.push_back(i);
	}

	vector<int> v2;
	for (size_t i = 0; i < 20; i++)
	{
		v2.push_back(i);
	}

	bool ret = equal(vec.cbegin(), vec.cend(), v2.begin());
	cout << "Ret:" << ret << endl;
}

int main() {
	// test_equal();

	function<int(int, int)> f;

	if (f) {
		cout << "YES!!" << endl;
	}
	else {
		cout << "No!!" << endl;
	}

	return 0;
}